package com.yunsc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunsc.store.entity.YunscUserAddressEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户收货地址表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:49
 */
@Mapper
public interface YunscUserAddressDao extends BaseMapper<YunscUserAddressEntity> {

    /**
     * 查询用户收货地址列表
     * @param userId 用户ID
     * @return 用户收货地址列表
     */
    List<YunscUserAddressEntity> selectUserAddressList(@Param("userId") Integer userId);

    /**
     * 查询用户收货地址详情
     * @param addressId 收货地址ID
     * @return 用户收货地址详情
     */
    YunscUserAddressEntity selectUserAddressDetail(Integer addressId);
}
